<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>hello bootstrap</title>
    <!--导入bootstrap的主样式-->
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">

</head>
<body>
<div class="container">
    <h1>Hello,BootStrap表格</h1>
    <div class="row">
        <div class="col-md-6">
            <table class="table">
                <caption>1.默认表格</caption>
                <thead>
                <tr class="info">
                    <th>表头1</th>
                    <th>表头2</th>
                    <th>表头3</th>
                    <th>表头4</th>
                </tr>
                </thead>
                <tbody>
                <tr class="active">
                    <td>.active</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                <tr class="success">
                    <td>.success</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                <tr class="danger">
                    <td>.danger</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="col-md-6">
            <table class="table table-bordered table-condensed">
                <caption>2.带表框的表格</caption>
                <thead>
                <tr>
                    <th>表头1</th>
                    <th>表头2</th>
                    <th>表头3</th>
                    <th>表头4</th>
                </tr>
                </thead>
                <tbody>
                <tr class="warning">
                    <td>.warning</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                <tr>
                    <td>单元格1</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                <tr>
                    <td>单元格1</td>
                    <td>单元格2</td>
                    <td>单元格3</td>
                    <td>单元格4</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <table class="table table-striped">
        <caption>3.带背景条纹</caption>
        <thead>
        <tr>
            <th>表头1</th>
            <th>表头2</th>
            <th>表头3</th>
            <th>表头4</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        </tbody>
    </table>

    <table class="table table-bordered table-hover">
        <caption>4.有鼠标悬停效果的表格</caption>
        <thead>
        <tr>
            <th>表头1</th>
            <th>表头2</th>
            <th>表头3</th>
            <th>表头4</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
            <td>单元格4</td>
        </tr>
        </tbody>
    </table>
</div>

</body>
</html>